package com.yupi.usercenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.usercenter.model.domain.Team;
import com.yupi.usercenter.model.domain.User;

import java.util.List;

/**
 * @author ZhangHaoYu
 * @description 针对表【team(队伍)】的数据库操作Mapper
 * @createDate 2023-04-11 08:21:10
 * @Entity generator.domain.Team
 */
public interface TeamMapper extends BaseMapper<Team> {

    /**
     * 根据队伍id 查询加入队伍的用户信息列表
     *
     * @param id 队伍id
     * @return 用户信息列表
     */
    List<User> selectJoinUsers(Long id);
}
